<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
</head>
<body>
<a href="#div">到底部</a>
<div style="height: 2000px;background: #FF0000"></div>
<div id="div" name="div" style="width: 100%;height: 500px;background: #000;">哈哈</div>
<div style="height: 200px;background: #FF0000"></div>
</body>
</html>